<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="template.xhtml">
	<ui:define name="content">
		<f:view>
			<h:form>
				<h:outputLabel value="Stadt auswählen: "></h:outputLabel>
				<h:selectOneListbox size="1" value="#{citySelection.currentItem}">
					<f:selectItems value="#{citySelection.allItems}" />
				</h:selectOneListbox>
				<br />
				<h:commandButton action="#{cityController.queryCity}"
					value="Show City"></h:commandButton>
			</h:form>
			<p></p>
			<hr></hr>
			<p></p>
			<h:form>
				<h:outputLabel value="Temperatur eingeben: "></h:outputLabel>
				<h:selectOneListbox size="1" value="#{searchQuery.greaterThan}">
					<f:selectItems value="#{searchQuery.signs}" />
				</h:selectOneListbox>
				<h:inputText size="3" value="#{searchQuery.temp}">
					<f:convertNumber></f:convertNumber>
				</h:inputText>

				<h:outputLabel value="Monat auswählen: "></h:outputLabel>
				<h:selectOneListbox size="1" value="#{searchQuery.month}">
					<f:selectItems value="#{searchQuery.months}" />
				</h:selectOneListbox>
				<br />
				<h:commandButton action="#{cityController.queryCities}"
					value="Show Cities"></h:commandButton>
			</h:form>
		</f:view>
	</ui:define>
</ui:composition>
</html>
